function template
<random>

std::operator<<

template <class charT, class traits, class UIntType,          size_t w, size_t n, size_t m, size_t r,          UIntType a, size_t u, UIntType d, size_t s,          UIntType b, size_t t, UIntType c, size_t l, UIntType f>  basic_ostream<charT,traits>& operator<< ( basic_ostream<charT,traits>& os,      const mersenne_twister_engine<UIntType,w,n,m,r,a,u,d,s,b,t,c,l,f>& mte );
Insert into output stream
Writes a textual representation of the object's current state, separating adjacent numbers by one or more spaces, in such a way that if this same text is inserted using operator>> into an object of the same type, the same sequence of random numbers would be generated by equivalent invocations of operator().

If os's fmtflags is not set to dec|left and its fill character is not the space character, the behavior of this function is undefined.

Parameters

os
ostream object with its fmtflags set to dec|left and using the space character as fill character.
mte
A mersenne_twister_engine object.


Return Value

The same as parameter os.

If some error happens during the output operation, the stream's badbit flag is set, and if the appropriate flag has been set with ios::exceptions, an exception is thrown.

Complexity

Linear on the state size (template parameter n).

See also